<html>
<head><meta charset="utf-8"><title>sanity check this compiler error? · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/sanity.20check.20this.20compiler.20error.3F.html">sanity check this compiler error?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="173212256"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/sanity%20check%20this%20compiler%20error%3F/near/173212256" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Colin Rofls <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/sanity.20check.20this.20compiler.20error.3F.html#173212256">(Aug 14 2019 at 15:18)</a>:</h4>
<p>This sure looks like a compiler bug to me: attempting to deriving <code>PartialEq</code> when <code>PartialEq</code> is impled for a child type, but where <code>Rhs</code> is not <code>Self</code> produces, at least, an unhelpful error message. Anyone care to take a look at this before I open an issue?<br>
<a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=ac13781b2c40c1966e18adfb919c236c" target="_blank" title="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=ac13781b2c40c1966e18adfb919c236c">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=ac13781b2c40c1966e18adfb919c236c</a></p>



<a name="173212323"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/sanity%20check%20this%20compiler%20error%3F/near/173212323" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Colin Rofls <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/sanity.20check.20this.20compiler.20error.3F.html#173212323">(Aug 14 2019 at 15:19)</a>:</h4>
<p>(and forgive me if this isn't the right place for this, not sure where to go with little things like this post-IRC)</p>



<a name="173212474"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/sanity%20check%20this%20compiler%20error%3F/near/173212474" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/sanity.20check.20this.20compiler.20error.3F.html#173212474">(Aug 14 2019 at 15:20)</a>:</h4>
<p>It's probably best to look at the macro expansion to see what is happening here</p>



<a name="173214629"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/sanity%20check%20this%20compiler%20error%3F/near/173214629" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Colin Rofls <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/sanity.20check.20this.20compiler.20error.3F.html#173214629">(Aug 14 2019 at 15:42)</a>:</h4>
<p>okay I see, mostly just a confusing error message. Is that worth opening an issue over?</p>



<a name="173214659"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/sanity%20check%20this%20compiler%20error%3F/near/173214659" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/sanity.20check.20this.20compiler.20error.3F.html#173214659">(Aug 14 2019 at 15:42)</a>:</h4>
<p>yep</p>



<a name="173222255"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/sanity%20check%20this%20compiler%20error%3F/near/173222255" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Colin Rofls <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/sanity.20check.20this.20compiler.20error.3F.html#173222255">(Aug 14 2019 at 17:09)</a>:</h4>
<p>okay thanks, filed <a href="https://github.com/rust-lang/rust/issues/63564" target="_blank" title="https://github.com/rust-lang/rust/issues/63564">https://github.com/rust-lang/rust/issues/63564</a>.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>